{include file='header.tpl'}
<h1 class="page-header">Cadastro de Evento</h1>

<form class="form-horizontal" id="eventos">
    
    <ul class="form-group panel panel-group list-unstyled">
        <li class="form-control-static">
            <label class="form-control-static col-lg-pull-12" for="evento">Evento</label><br />
            <input id="evento" name="evento" placeholder="Evento" class="input-sm  col-lg-12" required="" type="text" maxlength="100" valida='sim,,Evento' value="{$dados.evento}">
        </li>
        <li class="form-control-static">
            <label class="form-control-static col-lg-pull-12" for="data">Data</label><br />
            <input id="data" name="data" placeholder="Data" class="input-sm  col-lg-pull-2" required="" type="text" valida='sim,data,Data' value="{$dados.data|date_format:"%d/%m/%Y"}">
            <input type="button" title="Data" class="btnCalendario" onclick="displayCalendar( document.forms['eventos'].data, 'dd/mm/yyyy', this );" />
        </li>
        <li class="form-control-static">
            <label class="form-control-static col-lg-pull-12" for="site">Site</label><br />
            <input id="site" name="site" placeholder="Site" class="input-sm  col-lg-12" type="text" maxlength="255" valida='nao,,Site' value="{$dados.site}">
        </li>
        <li class="control-label">
            {if $id_eventos}
                <input type='hidden' name="id_eventos" id="id_eventos" value="{$dados.id_eventos}" />
                <input type="button" value="Salvar" id="salvar" name="salvar" class="btn btn-success" onclick="EditarPadrao(this, 'eventos','{$id_eventos}' , 'lista_eventos.php');"><span id='aguardando'></span>
            {else}
                <input type='hidden' name="id_usuarios" id="id_usuarios" value="{$id_usuarios}" />
                <input type="button" value="Salvar" id="salvar" name="salvar" class="btn btn-success" onclick="InserirPadrao(this, 'eventos', 'lista_eventos.php');"><span id='aguardando'></span>
            {/if}
        </li>
    </ul>
</form>


{include file='footer.tpl'}